xen/arm: domain_build: Rework the way to allocate the event channel interrupt
authorJulien Grall <julien.grall@arm.com>
Tue, 27 Feb 2018 15:15:54 +0000 (15:15 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 2 Mar 2018 23:15:49 +0000 (15:15 -0800)
commite427c9285a7282d2925b8b8c260338df909cc335
treef42534734ac6ab532ea90d0d6276b48fda87c4a7
parent3559ac583beadd9325363e972d17f60693c20a7e
xen/arm: domain_build: Rework the way to allocate the event channel interrupt

At the moment, a placeholder will be created in the device-tree for the
event channel information. Later in the domain construction, the
interrupt for the event channel upcall will be allocated the device-tree
fixed up.

Looking at the code, the current split is not necessary because all the
PPIs used by the hardware domain will by the time we create the node in
the device-tree.

>From now, mandate that all interrupts are registered before
acpi_prepare() and dtb_prepare(). This allows us to rework the event
channel code and remove one placeholder.

Note, this will also help to fix the BUG(...) condition in set_interrupt_ppi
which is completely wrong. See in a follow-up patch.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/domain_build.c